<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org"
      xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout">
<!-- Mirrored from www.zi-han.net/theme/hplus/table_data_tables.html by HTTrack Website Copier/3.x [XR&CO'2014], Wed, 20 Jan 2016 14:20:01 GMT -->
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>登录</title>

    <link rel="shortcut icon" href="favicon.ico">
    <link href="../css/bootstrap.min14ed.css?v=3.3.6" rel="stylesheet">
    <link href="../css/font-awesome.min93e3.css?v=4.4.0" rel="stylesheet">
    <link href="../css/animate.min.css" rel="stylesheet">
    <link href="../css/style.min862f.css?v=4.1.0" rel="stylesheet">
    <script>if (window.top !== window.self) {
        window.top.location = window.location;
    }</script>

</head>
<body class="gray-bg">

<div class="middle-box text-center loginscreen   animated fadeInDown">
    <div>
        <div style="height: 100px">
        </div>
        <h2>注册</h2>
        <form th:action="@{/tuser/register}" class="m-t" role="form" onsubmit="return checkPassword()" method="post">
            <div class="form-group">
                <input type="text" name="username" id="username" class="form-control" placeholder="请输入用户名" required="">
            </div>
            <div class="form-group">
                <input type="password" name="password" id="password" class="form-control" placeholder="请输入密码"
                       required="">
            </div>
            <div class="form-group">
                <input type="password" name="password1" id="password1" class="form-control" placeholder="请再次输入密码"
                       required="">
            </div>
            <button type="submit" class="btn btn-primary block full-width m-b">注 册</button>

            <p class="text-muted text-center">
                <small>已经有账户了？</small>
                <a th:href="@{/page/login}">点此登录</a>
            </p>

        </form>
    </div>
</div>
<script src="../js/jquery.min.js?v=2.1.4"></script>
<script src="../js/bootstrap.min.js?v=3.3.6"></script>
<script th:if="${msg !=null}" th:inline="javascript">
    var msg = [[${msg}]];
    alert(msg);
</script>
<script>
    function checkPassword() {
        var password = document.getElementById("password").value;
        var password1 = document.getElementById("password1").value;
        if (password == password1) {
            return true;
        } else {
            alert("两次密码不一致，请重新输入");
            return false;
        }
    }


</script>
</body>


<!-- Mirrored from www.zi-han.net/theme/hplus/tregister.html by HTTrack Website Copier/3.x [XR&CO'2014], Wed, 20 Jan 2016 14:19:52 GMT -->
</html>